package com.be.beadmin.service.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @author: Jiaming Zheng
 * @Date: Create in 18:34 2023/2/9
 * @Modified By:
 **/
@Component
public class EnvUtils {
    public static String ENV;

    @Value("${spring.profiles.active}")
    public void setENV(String ENV) {
        EnvUtils.ENV = ENV;
    }

    public static String getENV() {
        return ENV;
    }


}
